package com.ruoyi.face.controller;

import com.ruoyi.assessLog.domain.AssessLog;
import com.ruoyi.assessLog.service.IAssessLogService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author zhangbaiyan
 * @date 2024-07-09 11:11
 * @description:出入日志
 * @version: 1.0
 */
@Anonymous
@RestController
@RequestMapping("/assessLog1/assessLog1")
public class accessLogController {

    @Autowired
    private IAssessLogService assessLogService;



    /**
     * 新增出入日志
     */

    @PostMapping("add")
    public void add(@RequestBody AssessLog assessLog)
    {
        assessLog.setTime(new Date()    );
        assessLogService.insertAssessLog(assessLog);
    }
}
